package com.mdd.maduoduo.domain.interactor;

import com.mdd.maduoduo.domain.executor.PostExecutionThread;
import com.mdd.maduoduo.domain.executor.ThreadExecutor;
import com.mdd.maduoduo.domain.repository.LoginRepository;
import com.mdd.maduoduo.entity.ShareCodeEntity;

import javax.inject.Inject;

import io.reactivex.Observable;

public class GetShareCodeData extends UseCase<ShareCodeEntity,String>{

    @Inject
    LoginRepository mRepository;

    @Inject
    GetShareCodeData(ThreadExecutor threadExecutor, PostExecutionThread postExecutionThread) {
        super(threadExecutor, postExecutionThread);
    }

    @Override
    Observable<ShareCodeEntity> buildUseCaseObservable(String url) {
        return mRepository.getShareCode();
    }
}
